package com.example.dessert.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.util.Date;

/**
 * @ClassName: OrderDetail
 * @Description: 订单详细
 * @Author li
 * @Date 2022/1/18
 * @Version 1.0
 */
public class OrderDetail {

    private Long id;
    private Long orderId;
    private String productName;
    private String specName;
    private Integer price;
    private Integer number;

    //插入时自动填充
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


    public String getProductName() {

        return productName;
    }

    public String getSpecName() {

        return specName;
    }

    public Integer getPrice() {

        return price;
    }

    public Integer getNumber() {

        return number;
    }


    public OrderDetail setOrderId(Long orderId) {
        this.orderId = orderId;
        return this;
    }

    public OrderDetail setProductName(String productName) {
        this.productName = productName;
        return this;
    }

    public OrderDetail setSpecName(String specName) {
        this.specName = specName;
        return this;
    }

    public OrderDetail setPrice(Integer price) {
        this.price = price;
        return this;
    }

    public OrderDetail setNumber(Integer number) {
        this.number = number;
        return this;
    }



}
